package com.jml.config;

import com.jml.scope.RefreshScope;
import com.jml.service.ConfigClientService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JmlCloudAutoConfiguration {

    @Bean
    public JmlBeanDefinitionRegistry jmlBeanDefinitionRegistry() {
        return new JmlBeanDefinitionRegistry();
    }

    @Bean
    public RefreshScope refreshScope() {
        return new RefreshScope();
    }

    @Bean
    public ConfigClientService configClientService() {
        return new ConfigClientService();
    }

    @Bean
    public StartReadConfiguration startReadConfiguration() {
        return new StartReadConfiguration();
    }

    @Bean
    public JmlCloudClientConfig jmlCloudClientConfig() {
        return new JmlCloudClientConfig();
    }
}
